<?php
$a= <<<EOT
4dc968ff0ee35c209572d4777b721587
d36fa7b21bdc56b74a3dc0783e7b9518
afbfa200a8284bf36e8e4b55b35f4275
93d849676da0d1555d8360fb5f07fea2
EOT;

$b = <<<EOT
4dc968ff0ee35c209572d4777b721587
d36fa7b21bdc56b74a3dc0783e7b9518
afbfa202a8284bf36e8e4b55b35f4275
93d849676da0d1d55d8360fb5f07fea2
EOT;

function hex2bin($arr){
    
    $arr = str_replace("\n","",$arr);
    $arr = str_replace("\r","",$arr);
    echo $arr."<br>";
    $ret = '';
    $e = '';
    for($i= 0;$i<strlen($arr);$i+=2){
        $j = hexdec("0x".$arr[$i].$arr[$i+1]);
        //echo $j."aa<br>";
        $ret =$ret. chr($j);
        $e = $e. '%'.$arr[$i].$arr[$i+1];
    }
    echo $e . "<br>";
    //echo "input ".strlen($arr)." output " .strlen($ret) ."<br>";
    return $ret;
}

$a = hex2bin($a);
$b = hex2bin($b);

echo md5($a) ."<br>";
echo md5($b) ."<br>";
